package com.abe.mvp.view.fragment.base;


public abstract class BaseExerciseFragment extends BaseFragment {
	
	public abstract boolean checkInitComplete();
	
	public abstract boolean checkIsCanSetSpeedSlope();

	/** 设置坡度 */
	public abstract void setSlope(float slope);

	/** 设置速度 */
	public abstract void setSpeed(float speed);

	/** 开始运动 */
	public abstract void startExercise();

	/** 结束运动 */
	public abstract void stopExercise();

	/** 选择位置 */
	public abstract void selectPosition(int pos);

	protected float current_slope = 0;
	/**m/s*/
	protected float current_speed = 0;
	protected float old_speed, old_slope;

	/** 跑步中是否允许手动改变速度与坡度 */
	protected boolean allow_change_in_running = false;

	public boolean isAllow_change_in_running() {
		return allow_change_in_running;
	}

	public void setAllow_change_in_running(boolean allow_change_in_running) {
		this.allow_change_in_running = allow_change_in_running;
	}
	
	protected boolean isCanStart=false;

}
